//
//  RepositoryItem.m
//  Alfresco
//
//  Created by Michael Muller on 10/21/09.
//  Copyright 2009 Michael J Muller. All rights reserved.
//

#import "RepositoryItem.h"


@implementation RepositoryItem

@synthesize title;
@synthesize guid;
@synthesize fileType;
@synthesize lastModifiedBy;
@synthesize lastModifiedDate;
@synthesize contentLocation;

- (void) dealloc {
	[title release];
	[guid release];
	[fileType release];
	[lastModifiedBy release];
	[lastModifiedDate release];
	[contentLocation release];
	[super dealloc];
}

- (BOOL) isFolder {
	return [self.fileType isEqualToString:@"folder"] || [self.fileType isEqualToString:@"cmis:folder"];
}

- (NSComparisonResult) compareTitles:(id) other {
	return [title compare:[other title] options:NSCaseInsensitiveSearch];
}

@end
